package com.common.dao;

import java.util.List;

import com.common.entity.PageRole;
import com.common.entity.Role;
import com.common.entity.RoleCorrelationPermission;

public interface RoleMapper {
	public int insertRole(Role role);
	public void deleteRole(Role role);
	public int correlationPermission(RoleCorrelationPermission rolePermission);
	public int uncorrelationPermission(RoleCorrelationPermission rolePermission);
	public List<PageRole> getAllRoleList();
	public Role getRoleByName(Role role);
	public List<Role> getRolesList();
}
